<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .outer{
            background-color: greenyellow;
            width: 1000px;
            height: 700px;
            margin: 0 auto;

        }

        .inner{
            width: 300px;
            height: 200px;
            float: right;
        }

        .i1{
            background-color: aquamarine;
            position: absolute;
            top: 200px;
            right: 100px;
        }

        .i2{
            background-color: blue;
            position: fixed;
        }

        .i3{
            background-color: yellow;
            position: relative;
            top: 10px;
        }

    </style>
</head>
<body>

    <div class="outer">
        <div class="inner i1">div1</div>
        <div class="inner i2">div2</div>
        <div class="inner i3">div3</div>
    </div>
    <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
    
    
</body>
</html>